#ifndef __STR_H__
#define __STR_H__

struct	str_buffer_s;


#ifdef __cplusplus
extern "C" {
#endif

struct str_buffer_s	*str_new( );
void	str_free( struct str_buffer_s *str );
void	str_empty( struct str_buffer_s *str );
int	str_alloc( struct str_buffer_s *str, const char *src, int src_len );
int	str_append( struct str_buffer_s *str, const char *src, int src_len );
int	str_getlen( struct str_buffer_s *str );
char	*str_getbuf( struct str_buffer_s *str );

#ifdef __cplusplus
}
#endif

#endif
